package com.hand.rch25287.zuoye002;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

/**
 * @author 25287
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new FileSystemXmlApplicationContext("classpath:sayMessage.xml");
        Person person = (Person) context.getBean("person");

        person.getISay().sayHello();
    }
}
